package fr.oz.mobile.common.ui 
{
	import flash.display.GradientType;
	import flash.display.SpreadMethod;
	import flash.display.Sprite;
	import flash.geom.Matrix;
	/**
	 * ...
	 * @author Fazermokeur
	 */
	public class NavSeparator extends Sprite
	{
		
		public function NavSeparator() 
		{
			var fillType:String = GradientType.LINEAR;
			var colors:Array = [0x3b3b3b, 0x3b3b3b, 0x3b3b3b, 0x3b3b3b];
			var alphas:Array = [0, 1, 1, 0];
			var ratios:Array = [55, 100, 155, 200];
			var matr:Matrix = new Matrix();
			//matr.createGradientBox(_length, 48, 0, posXBegin);
			matr.createGradientBox(480, 1);
			var spreadMethod:String = SpreadMethod.PAD;
			this.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);  
			this.graphics.drawRect(0, 0, 480, 1);
			this.graphics.endFill();
		}
		
	}

}